if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
APP2(app2(l1, l2), l3) -> APP2(l2, l3)
MEM2(x, cons2(y, l)) -> EQ2(x, y)
IFINTER4(true, x, l1, l2) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> INTER2(l2, l3)
INTER2(app2(l1, l2), l3) -> INTER2(l1, l3)
INTER2(l1, cons2(x, l2)) -> MEM2(x, l1)
MEM2(x, cons2(y, l)) -> IFMEM3(eq2(x, y), x, l)
INTER2(l1, app2(l2, l3)) -> APP2(inter2(l1, l2), inter2(l1, l3))
IFMEM3(false, x, l) -> MEM2(x, l)
INTER2(l1, cons2(x, l2)) -> IFINTER4(mem2(x, l1), x, l2, l1)
EQ2(s1(x), s1(y)) -> EQ2(x, y)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l3)
INTER2(cons2(x, l1), l2) -> IFINTER4(mem2(x, l2), x, l1, l2)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> APP2(inter2(l1, l3), inter2(l2, l3))
INTER2(cons2(x, l1), l2) -> MEM2(x, l2)
APP2(app2(l1, l2), l3) -> APP2(l1, app2(l2, l3))
IFINTER4(false, x, l1, l2) -> INTER2(l1, l2)
APP2(cons2(x, l1), l2) -> APP2(l1, l2)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
APP2(app2(l1, l2), l3) -> APP2(l2, l3)
MEM2(x, cons2(y, l)) -> EQ2(x, y)
IFINTER4(true, x, l1, l2) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> INTER2(l2, l3)
INTER2(app2(l1, l2), l3) -> INTER2(l1, l3)
INTER2(l1, cons2(x, l2)) -> MEM2(x, l1)
MEM2(x, cons2(y, l)) -> IFMEM3(eq2(x, y), x, l)
INTER2(l1, app2(l2, l3)) -> APP2(inter2(l1, l2), inter2(l1, l3))
IFMEM3(false, x, l) -> MEM2(x, l)
INTER2(l1, cons2(x, l2)) -> IFINTER4(mem2(x, l1), x, l2, l1)
EQ2(s1(x), s1(y)) -> EQ2(x, y)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l3)
INTER2(cons2(x, l1), l2) -> IFINTER4(mem2(x, l2), x, l1, l2)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> APP2(inter2(l1, l3), inter2(l2, l3))
INTER2(cons2(x, l1), l2) -> MEM2(x, l2)
APP2(app2(l1, l2), l3) -> APP2(l1, app2(l2, l3))
IFINTER4(false, x, l1, l2) -> INTER2(l1, l2)
APP2(cons2(x, l1), l2) -> APP2(l1, l2)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
↳ QDP
APP2(app2(l1, l2), l3) -> APP2(l2, l3)
APP2(app2(l1, l2), l3) -> APP2(l1, app2(l2, l3))
APP2(cons2(x, l1), l2) -> APP2(l1, l2)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APP2(app2(l1, l2), l3) -> APP2(l2, l3)
APP2(app2(l1, l2), l3) -> APP2(l1, app2(l2, l3))
APP2(cons2(x, l1), l2) -> APP2(l1, l2)
POL(APP2(x1, x2)) = x1
POL(app2(x1, x2)) = 1 + x1 + x2
POL(cons2(x1, x2)) = 1 + x2
POL(nil) = 0
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
↳ QDP
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ QDP
EQ2(s1(x), s1(y)) -> EQ2(x, y)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
EQ2(s1(x), s1(y)) -> EQ2(x, y)
POL(EQ2(x1, x2)) = 2·x1 + 2·x2
POL(s1(x1)) = 2 + x1
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QDP
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
MEM2(x, cons2(y, l)) -> IFMEM3(eq2(x, y), x, l)
IFMEM3(false, x, l) -> MEM2(x, l)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MEM2(x, cons2(y, l)) -> IFMEM3(eq2(x, y), x, l)
Used ordering: Polynomial interpretation [21]:
IFMEM3(false, x, l) -> MEM2(x, l)
POL(0) = 0
POL(IFMEM3(x1, x2, x3)) = 2·x2 + 2·x3
POL(MEM2(x1, x2)) = 2·x1 + 2·x2
POL(cons2(x1, x2)) = 1 + 2·x1 + x2
POL(eq2(x1, x2)) = 0
POL(false) = 0
POL(s1(x1)) = 0
POL(true) = 0
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
IFMEM3(false, x, l) -> MEM2(x, l)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
INTER2(l1, cons2(x, l2)) -> IFINTER4(mem2(x, l1), x, l2, l1)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l3)
INTER2(cons2(x, l1), l2) -> IFINTER4(mem2(x, l2), x, l1, l2)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l2)
IFINTER4(true, x, l1, l2) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> INTER2(l2, l3)
INTER2(app2(l1, l2), l3) -> INTER2(l1, l3)
IFINTER4(false, x, l1, l2) -> INTER2(l1, l2)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
INTER2(l1, cons2(x, l2)) -> IFINTER4(mem2(x, l1), x, l2, l1)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l3)
INTER2(cons2(x, l1), l2) -> IFINTER4(mem2(x, l2), x, l1, l2)
INTER2(l1, app2(l2, l3)) -> INTER2(l1, l2)
INTER2(app2(l1, l2), l3) -> INTER2(l2, l3)
INTER2(app2(l1, l2), l3) -> INTER2(l1, l3)
Used ordering: Polynomial interpretation [21]:
IFINTER4(true, x, l1, l2) -> INTER2(l1, l2)
IFINTER4(false, x, l1, l2) -> INTER2(l1, l2)
POL(0) = 0
POL(IFINTER4(x1, x2, x3, x4)) = 2·x1 + 2·x3 + x4
POL(INTER2(x1, x2)) = 2 + 2·x1 + x2
POL(app2(x1, x2)) = 2 + x1 + x2
POL(cons2(x1, x2)) = 1 + 2·x2
POL(eq2(x1, x2)) = 0
POL(false) = 1
POL(ifmem3(x1, x2, x3)) = 1
POL(mem2(x1, x2)) = 1
POL(nil) = 0
POL(s1(x1)) = 0
POL(true) = 1
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(false, x, l) -> mem2(x, l)
ifmem3(true, x, l) -> true
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
IFINTER4(true, x, l1, l2) -> INTER2(l1, l2)
IFINTER4(false, x, l1, l2) -> INTER2(l1, l2)
if3(true, x, y) -> x
if3(false, x, y) -> y
eq2(0, 0) -> true
eq2(0, s1(x)) -> false
eq2(s1(x), 0) -> false
eq2(s1(x), s1(y)) -> eq2(x, y)
app2(nil, l) -> l
app2(cons2(x, l1), l2) -> cons2(x, app2(l1, l2))
app2(app2(l1, l2), l3) -> app2(l1, app2(l2, l3))
mem2(x, nil) -> false
mem2(x, cons2(y, l)) -> ifmem3(eq2(x, y), x, l)
ifmem3(true, x, l) -> true
ifmem3(false, x, l) -> mem2(x, l)
inter2(x, nil) -> nil
inter2(nil, x) -> nil
inter2(app2(l1, l2), l3) -> app2(inter2(l1, l3), inter2(l2, l3))
inter2(l1, app2(l2, l3)) -> app2(inter2(l1, l2), inter2(l1, l3))
inter2(cons2(x, l1), l2) -> ifinter4(mem2(x, l2), x, l1, l2)
inter2(l1, cons2(x, l2)) -> ifinter4(mem2(x, l1), x, l2, l1)
ifinter4(true, x, l1, l2) -> cons2(x, inter2(l1, l2))
ifinter4(false, x, l1, l2) -> inter2(l1, l2)